package com.hylu.springcloud.services.impl;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.hylu.springcloud.dto.BookDTO;
import com.hylu.springcloud.services.EchoService;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
public class EchoServiceImpl implements EchoService {
    @Override
    public String echo(String message) {
        return "[echo] Hello, " + message;
    }

    @Override
    public BookDTO add(BookDTO bookDTO) {
        Log log = LogFactory.get();
        log.info("新增书籍： = " + bookDTO.getName());
        return bookDTO;
    }
}
